using System;
using DG.Tweening;
using DG.Tweening.Core;
using UnityEngine;

namespace WorkFlow.TweenGo
{
    public class ScaleTween : TweenGoBase<Transform, Vector3>
    {
        protected override Tweener CreateTween(DOGetter<Vector3> startValueGetter, DOSetter<Vector3> setter, Vector3 endValue, float duration)
        {
            return DOTween.To(startValueGetter, setter, endValue, duration);
        }

        protected override void SetValue(Vector3 value)
        {
            Target.localScale = value;
        }

        protected override Vector3 CurrentValue()
        {
            return Target.localScale;
        }
    }
}
